#!/bin/sh
source /etc/profile
time=`date +"%Y%m%d-%H%M%S"`
apppath=/home/ftk/match/Light/light
cd ${apppath}
gzip light.log
mkdir logs &> /dev/null
mv light.log.gz logs/${time}-light.log.gz
nohup java -Xms256m -Xmx256m -Dspring.config.location=/home/ftk/match/Light/light/config/ -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Duser.timezone=GMT+08 -jar light-0.0.1-SNAPSHOT.jar &> light.log &
echo $! > app.pid

